feat(notifications): route AMS attempt/governor/PR events through badge delivery - #7708
Conversation
…ge delivery Extend evaluateNotificationEvent to notify-deliver with AMS event kinds, add contributor ams-notifications ingest, and wire miner attempt/governor/PR-outcome call sites. Regenerates openapi.json for the new route (no visual UI change). Closes JSONbored#7657
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-21 10:17:23 UTC
Review summary Nits — 3 non-blocking
CI checks failing
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionPartially addressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. Visual preview
Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy. Scroll preview
A short scroll-through clip (desktop) — click either thumbnail to open the full animation. Evidence for scroll-linked behavior a single screenshot can't show. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
|
LoopOver is closing this pull request on the maintainer's behalf (CI is failing (validate, validate-code, validate-tests (3))). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |


Summary
ams_attempt_started,ams_attempt_failed,ams_governor_paused,ams_pr_outcome) to the existingNotificationEventTypeunion and public-safe content builders.POST /v1/contributors/:login/ams-notificationsthat evaluates events throughevaluateAndEnqueueNotificationDeliveries— the same evaluate →notify-deliverhandoff asjob-dispatch.ts.Closes #7657
Resubmit of #7691 (closed for incomplete UI Evidence after
apps/loopover-ui/public/openapi.jsonregeneration). This change has no visible UI delta; evidence below documents Desktop/Tablet/Mobile · Dark (site is dark-mode-only) with production before/after pairs showing no visual change.Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Validation
git diff --checknpm run actionlintnpm run typechecknpm run test:coveragelocally;codecov/patchrequires ≥99% coverage of the lines AND branches you changed (aim for 100% on your diff so CI variance does not fail near the threshold). Global coverage is a non-blocking trend with a loose 90% backstop, not the gate.npm run test:workersnpm run build:mcpnpm run test:mcp-packnpm run ui:openapi(regeneratedapps/loopover-ui/public/openapi.json)npm run ui:lintnpm run ui:typechecknpm run ui:buildnpm audit --audit-level=moderateIf any required check was skipped, explain why:
npm run test:ci/test:coveragenot run locally on Windows (known executable-bit / miner-pack / selfhost script friction); focused unit suites for changed notification + miner + cloudflare-schema paths were run and passed. CI is the authoritative gate.Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
apps/loopover-ui/public/openapi.jsonis regenerated for the new API route only — no rendered UI/CSS/route change. loopover-ui is dark-mode-only. Before = production; after = same production capture (no visual delta).Notes
src/db/schema.tsonly gains a comment documenting AMSevent_typestrings; no migration (column remains free-text).loopover-mcpsession skips notify without failing attempt/governor/PR-outcome work.